/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       continuous_event.cpp

	$Header: /game/continuous_event.cpp $

	$NoKeywords: $

 ************************************************************************/

#include "precompiled.h"
#include "continuous_event.h"

#include "streambuf_operators.h"

// --------------------------------------------------------------------------
// Unnamed namespace
// --------------------------------------------------------------------------

namespace
{

	// --------------------------------------------------------------------------
	// --------------------------------------------------------------------------
	inline int to_base_map_format_version( int format_version )
	{
		return 0;
	}

} // Unnamed namespace

// --------------------------------------------------------------------------
// t_continuous_event members
// --------------------------------------------------------------------------

// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
bool t_continuous_event::read_from_map(
	std::streambuf &	stream,
	int					format_version )
{
	return		t_script_event::read_from_map( stream, to_base_map_format_version( format_version ) )
			&&	read_string16( stream, m_name );
}
